<?php

use Biz\service\trade\UserAddress as sAddressUser;

class DelAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_REGISTER;

    public function main()
    {
        $addressId = (int)$this->getRequest()->getPost('id');
        $result = sAddressUser::deleteAddressById($addressId, $this->uid);
        $this->setSuccess($result);
    }
}